export interface TreeNode {
    id: string
    parentId: string
    name: string
    icon: string
    kind: ResourceKind
    kindName: string
    route: string
    path: string
    sort: number
    children?: TreeNode[]
}

export enum ResourceKind {
    Menu = 'menu',
    Page = 'page',
    Action = 'action'
}

export interface MenuForm {
    name: string
    code: string
    parentId: string
    route: string
    path: string
    icon: string
    sort?: number
}

export interface ActionForm {
    name: string
    code: string
    parentId: string
    sort?: number
}